interface ParamsType {
    code: number,
    label: string,
}

export default (params: ParamsType[]) => params.map(({code, label: name}) => ({id: code + '', name}));